Dismiss

data class Dismiss(val toDismiss: (UIViewController) -> UIViewController = { it }, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Dismisses the parent.

Parameters

toDismiss

Determines the UIViewController to dismiss based on the provided parent viewController.

animated

Specifies whether transition should be animated

completion

Optional function to call when dismissal has completed

Constructors

Link copied to clipboard
constructor(toDismiss: (UIViewController) -> UIViewController = { it }, animated: Boolean = false, completion: () -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val completion: () -> Unit?
Link copied to clipboard
val toDismiss: (UIViewController) -> UIViewController